package com.hualian.system.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

import com.hualian.system.service.SystemService;
@Component
public class InstantiationProcessor implements ApplicationListener<ContextRefreshedEvent> {
	@Autowired
	private SystemService systemService;
	@Override
	public void onApplicationEvent(ContextRefreshedEvent arg0) {
		
		// 初始化系统参数
		systemService.initSystemParameters();
	}

}